Repository navigation
difftest(primitive.primitive_creation_p2): gen0092 and gen0189 recorded, the exact net's small elbow is an invalid body - #2811
Conversation
…ed, the exact net's elbow is an invalid body below radius 0.1
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Taking the explicitly available small-profile mitre follow-up in draft #2840: reproduce the invalid small-radius elbow and fix its geometric cause. #2811 retains ownership of its mismatch records and existing test; #2840 owns the library fix and failing-radius regressions. Initial scope is the planar-path mitre construction and whichever routine the first incorrect geometry traces to. No tolerance relaxation or passing validation is claimed. |
|
Integration finding at I merged only the published heads of #2792, #2803, #2806 and #2811 onto main cargo run --profile difftest -p difftest --features cpp -- --unit primitive.primitive_creation_p2Exit 1. This is a plan-status blocker, separate from #2840’s claimed geometry fix. I have not edited either scope or published the integration branch. |
|
Thanks @ablasik, careful work: the radius table shows it's the small-profile mitre, not the legs. Please mark the unit |
…eation-p2-exact-sweep
|
@ChrisNourse @jyviko asked above that, until the small-profile mitre is fixed, the planar-path sweep refuse below the radius where the union stays valid (naming that radius), instead of returning a body that fails |
…cases are known mismatches
|
Thanks for this! #2816 has merged and replaced difftest with goldens. To land, this PR needs the steps in this comment. Its |
…eation-p2-exact-sweep
… cases are known failing, not blessed
… went with difftest Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bherbruck
left a comment
There was a problem hiding this comment.
Thanks @ablasik. Rebased onto goldens by me: the two cases are recorded in known_failing.json with their issue, and the radius-0.1 regression stays. The refusal jyviko asked for belongs with #2840. Merging.
Written by Claude Code (Anthropic) on behalf of @bherbruck.
Record 201 justified outputs (190 changed and 11 added), with case-level old/new values in the golden diffs and geometric justification in the consolidated finding. No comparison tolerance or absolute floor changes. Examples: curve_p4/circle_property_21's derivative changes +0.64309503671411716 to -0.64309503671411716; intersect.topology_solver_p1/gen1646 changes refusal to three successful calls with an enclosure-rounded near-zero distance at parameter 0.6406108473689741; topology.brep_p1/find_side_6 changes 1001/UNSURE to success/left, justified by the positive endpoint tangent cross product. The missed-box trims retain the full box (26/48/24 or 6/12/8 faces/edges/vertices) because the nearest cutter endpoint and positive side inequality apply throughout. The raw-knot lens keeps one face for KeepPoint and zero for DeletePoint because both boundaries are entirely on the reference side. Existing before/after figures show the actual elbow geometry and the conditioning cases. Exclude six disproved curve-pair maxima under #3060, four unverified finite-cutter trim outputs under #3061, and the sphere-band accuracy failure under #2967. The finding separates proved defects from missing expected-result contracts. Existing #2794 records remain with tangency-labs#2811's owner. Co-Authored-By: Codex <noreply@openai.com>
Records the two small-profile elbow cases of
primitive.primitive_creation_p2as known failing on the goldens layout, and adds a regression for the radius where the elbow is a valid body.Cases
gen0092andgen0189(the same input: a circle of radius 1e-3 swept along two lines of length 1e-2 at a right angle, tolerance 1e-7, both caps) changed with #2740, which builds a path sweep's net from its definition. Before #2740, both sides refused (boolean::merge::p3, code 1001). Now solidcore returns success, but the body failscheck_breplevel 2:SmVertex::Test tangency-labs/solidcore#1 Bad Vertex Gap, vertex offset 1.8284271e-3 = r(2 sqrt 2 - 1) against a tolerance of 2e-5. From radius 0.1 the elbow is a valid body of volume pi r^2 (leg1 + leg2); at 1e-2 and below it is not. The leg length does not matter, the radius does. The finding inplan/findings/has the measured table.These results are wrong, so they are not blessed. #2816 carried them over as goldens with the wrong values (status 0, a body returned); this PR removes those two golden lines and lists both cases in
crates/goldens/expected/known_failing.jsonunder tangency-labs/solidcraft#13762. The correct answer is either a refusal or the valid body of volume 6.2832e-8. The fix is in the draft #2840 (projected extrema used by small-profile mitres), which removes the entries and blesses the correct results with its pictures.Changes:
crates/goldens/expected/known_failing.json: gen0092 and gen0189.crates/goldens/expected/primitive.primitive_creation_p2.jsonl: the two wrong golden lines removed.crates/solidcore/tests/issue_2794_planar_path_mitred_elbow.rs: the elbow at radius 0.1 is a valid body of the closed-form volume.plan/findings/primitive.primitive_creation_p2--exact-net-elbow-unites-into-an-invalid-body-below-radius-0-1.md: the measurements.No kernel code changes and no tolerance changes. Refs tangency-labs/solidcraft#13762.
@bherbruck @jyviko
Summary by CodeRabbit